package com.atguigu.oss;

import com.atguigu.oss.utill.ConstantPropertiesUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author: He Wentao
 * @date: 2022/8/19 21:36
 */
// 排除数据库自动配置类，因为我们不需要使用数据库
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"com.atguigu"})
@EnableDiscoveryClient // nacos 注解
// 启用自定义属性配置类
@EnableConfigurationProperties(ConstantPropertiesUtils.class)
public class ServiceOSS {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOSS.class,args);
    }

}
